import request from '@/utils/request'

export function getDefectPillarTop30(query) {
  return request({
    url: '/cms/defectInfo/getDefectPillarTop30',
    method: 'POST',
    data: query
  })
}

export function getDefectPillarDetail(query) {
  return request({
    url: '/cms/defectInfo/getDefectPillarDetail',
    method: 'POST',
    data: query
  })
}

export function getDefectTypeEchart(query) {
  return request({
    url: '/cms/defectInfo/getDefectTypeEchart',
    method: 'POST',
    data: query
  })
}

export function getDefectLevelEchart(query) {
  return request({
    url: '/cms/defectInfo/getDefectLevelEchart',
    method: 'POST',
    data: query
  })
}

export function getDefectEchart(query) {
  return request({
    url: '/cms/defectInfo/getDefectEchart',
    method: 'POST',
    data: query
  })
}
